package com.ian.service;

import com.ian.domain.dto.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * UserMgrClient 接口
 * 用于远程调用认证系统的接口
 *
 * @author 张伟
 * @version 1.0.0
 * @date 2021-12-20
 */
@FeignClient(value = "mgr-user-service", path = "/mgr/user")
public interface UserMgrClient {

    /**
     * 根据用户账号查询用户对象
     * @param map
     * @return
     */
    @PostMapping("/selectUserByUserName")
    AjaxResult selectUserByUserName(Map<String, Object> map);
}
